<?php if (isset($accounts)): ?>
<div class="row-fluid">
    <div class="span12">
        <div class="box gradient">
            <div class="title">
                <h4>
                    <span>Danh sách các Account cua Website <?php echo $jobboard->name ?></span>
                </h4>
            </div>
            <a class="btn btn-info" href="<?php echo url_for('@account_edit?jobboard_id='.$jobboard->id) ?>">Thêm</a>
            <div class="content noPad clearfix">
              <table cellpadding="0" cellspacing="0" border="0" class="responsive dynamicTable display table table-bordered" width="100%">
                <thead>
                  <tr>
                    <th>
                        <span>ID</span>
                    </th>
                    <th>
                        <span>Website</span>
                    </th>
                    <th>
                        <span>Username</span>
                    </th>
                    <th>
                        <span>Password</span>
                    </th>
                    <th>
                        <span>Thao tác</span>
                    </th>
                  </tr>
				</thead>
				<tbody>
				  <?php foreach ($accounts as $account): ?>
                    <tr>
                        <td style='text-align:center;'><?php echo $account->id ?></td>
                        <td style='text-align:center;'><?php echo $jobboard->name ?></td>
                        <td style='text-align:center;'><?php echo $account->username ?></td>
                        <td style="text-align:center"><?php echo $account->password ?></td>
                        <td style="text-align:center"><a href="<?php echo url_for('@account_edit?account_id='.$account->id) ?>"><span class="icon12 icomoon-icon-pencil"></span></a><a href="<?php echo url_for('@account_delete?account_id='.$account->id) ?>"><span class="icon12 icomoon-icon-remove"></span></a></td>
                    </tr>
                  <?php endforeach ?>
    			</tbody>
  				</table>
        	</div>
        	<a class="btn btn-info" href="<?php echo url_for('@account_edit?jobboard_id='.$jobboard->id) ?>">Thêm</a>
    	</div>
	</div>
</div>
<?php endif ?>